package com.tzh.config.i18n;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;

@Component
public class MessageLoading {

    @Autowired
    private MessageSource messageSource;

    public String getMsg(String code, Object[] args) {
        return messageSource.getMessage(code, args, null, null);
    }
}
